# -*- coding: utf-8 -*-
from flask import Flask,url_for,redirect
app = Flask(__name__)
@app.route('/')
def hello_world():
    print("首先访问了index()这个函数")
    url1 = url_for('user_login')
    return redirect(url1)
@app.route('/user_login')
def user_login():
    return "这个是用户界面，请登录"
if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=8888)